from PyQt4 import QtGui, QtCore
import os, random, gSystem

class Faction(object):
    
    def __init__(self, name, adjective, leadertitle, leadername, startinggold):
        self._name = name
        self._adj = adjective
        self._lname = leadername
        self._ltitle = leadertitle
        self._gold = startinggold
        self._buffs = []
        
    def getName(self):
        return self._name
    
    def getLeaderFull(self):
        return " ".join([self._ltitle, self._lname])
    
    def getCurrentGold(self):
        return self._gold
    
    @staticmethod
    def loadFromStuff(dat):
        fac = Faction(dat[0], dat[1], dat[2], dat[3], 100)
        return fac